xen/arm: Introduce a helper to get default HCR_EL2 flags
authorWei Chen <Wei.Chen@arm.com>
Wed, 5 Apr 2017 09:09:04 +0000 (17:09 +0800)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 5 Apr 2017 19:12:03 +0000 (12:12 -0700)
commit6e4f614babb72bad899c94064930c8116ba9c59a
tree83752891fcd4fa627dae19ec2054eaac0073916d
parent90dbcd749103c35609370e7b11d26690d4ca4f40
xen/arm: Introduce a helper to get default HCR_EL2 flags

We want to add HCR_EL2 register to Xen context switch. And each copy
of HCR_EL2 in vcpu structure will be initialized with the same set
of trap flags as the HCR_EL2 register. We introduce a helper here to
represent these flags to be reused easily.

Signed-off-by: Wei Chen <Wei.Chen@arm.com>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/traps.c
xen/include/asm-arm/processor.h